from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from Info import create_app, db

app = create_app()
manager = Manager(app)
# 数据库迁移
Migrate(app, db)
# 设置ｄｂ命令
manager.add_command('db', MigrateCommand)


if __name__ == '__main__':
    manager.run()